package util;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;

public class TokenUtil {
    public static String getToken(String username, String sec) {
        return JWT.create().withAudience(username).sign(Algorithm.HMAC256(sec));
    }
}
